package com.example.book.model;

import lombok.Data;

@Data
//currentPage：当前页码
// pageSize：每页的条数
public class PageRequest {
    private Integer currentPage=1;
    private Integer pageSize=10;

    //起始位置
    private Integer offset;

    public  Integer getOffset(){
        return (currentPage-1)*pageSize;
    }
}
